const path = require('path'); // 一个处理 ZIP 文件的库
// let note = './dist/main.d197c29c.js.map';
// path1 = path.relative('/data/orandea/test/aaa', '/data/orandea/impl/bbb');
// console.log(path1);
// console.log(path.dirname(note)); // ./dist
// console.log(path.basename(note)); // main.d197c29c.js.map
// console.log(path.extname(note)); // .map
// const name = 'joe';
// console.log('', path.join('/', 'users', name, 'notes.txt')); //  \users\joe\notes.txt
// console.log(path.parse(note));
// console.log(path.format());
// console.log(path.resolve('./dist/main.d197c29c.js.map')); // D:\study\react-webpack\dist\main.d197c29c.js.map
// console.log(__dirname); // D:\study\react-webpack
// console.log(__filename); // D:\study\react-webpack\zipTest.js

let path1 =  path.join(__dirname, './src')
let path2 =  path.resolve(__dirname, './src')

console.log('path1', path1);
console.log('path2', path2);